import SvgIcon from "@/components/SvgIcon";

const requireAll = (requireContext) =>
  requireContext.keys().map(requireContext);

export default {
  install(app) {
    app.component("svg-icon", SvgIcon);
    const req = require.context("./svgs/", false, /\.svg$/);
    requireAll(req);
  },
};
